<template>
	<view class="agreement">
		<rich-text :nodes="data"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:""
			}
		},
		onLoad() {
			this.getData()
		},
		methods: {
			async getData(){
				let data = await this.$rqt.userAgreement();
				if (1 == data.code) {
					this.data = data.data ?? '暂无数据'
				} else{
					this.data = data.data ?? '暂无数据'
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.agreement{
		padding: 20rpx;
	}

</style>
